﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>泽优大文件上传插件</title>
    <link href="../js/up6.css" type="text/css" rel="Stylesheet"/>
    <script type="text/javascript" src="../js/jquery-1.4.min.js"></script>
    <script type="text/javascript" src="../js/json2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/up6.js" charset="utf-8"></script>
    <script language="javascript" type="text/javascript">
        var dz = window.parent;
        var lic = window.parent.licnese;
		var pos = window.location.href.lastIndexOf("/") + 1;
        var api = [
            window.location.href.substr(0, pos),
            "api/up6/"
        ].join("");
		//
		var cbMgr = new HttpUploaderMgr({
            Config: {
                License2: lic,//授权码
                FileFilter: "*"//限制上传的文件类型
            },//事件
            event: {
                md5Complete: function (obj, md5) {
                    //文件md5计算完毕
                },
                fileAppend: function (o) {
                    //自定义业务字段
                    /*
                    $.extend(true,o.fields,{
                        cmp_name:"microsoftr",
                        cmp_type:$("#cmptp").val(),
                        cmp_id:"1"});
                    */
                },
                fileComplete: function (obj) {
                    dz.showDialog('附件上传完成！', 'right', null, null, 0, null, null, null, null, 3);
                    //刷新附件列表
                    dz.updateAttachList();
                },
                queueComplete: function () {
                    //队列中所有文件上传完毕
                    //$(document.body).append("队列完成<br/>");
                },
                addFdError: function (jv) {
                    //添加文件夹错误
                    //alert("本地路径不存在：" + jv.path);
                },
                scanComplete: function (obj) {
                    //目录扫描完毕
                },
                loadComplete: function (m) {
                    //控件加载完毕
                }
            },
            ui: {
                render: "FilePanel"
            }
        });
    </script>
</head>
<body>
	<div id="FilePanel"></div>
</body>
</html>
